import {Column, Entity, PrimaryGeneratedColumn} from "typeorm";

@Entity()
export default class UserEntity{
    @PrimaryGeneratedColumn()
    public id!: number;

    @Column()
    public user!: string;

    @Column()
    public password!: string;

    @Column()
    public role!: number;

    @Column({type: 'tinyint', default: 1})
    public enable!: number;
}